package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.DeviceManageMapper;
import com.ruoyi.system.domain.DeviceManage;
import com.ruoyi.system.service.IDeviceManageService;

/**
 * 设备管理Service业务层处理
 * 
 * @author 王国飞
 * @date 2023-06-20
 */
@Service
public class DeviceManageServiceImpl implements IDeviceManageService 
{
    @Autowired
    private DeviceManageMapper deviceManageMapper;

    /**
     * 查询设备管理
     * 
     * @param deviceNumber 设备管理主键
     * @return 设备管理
     */
    @Override
    public DeviceManage selectDeviceManageByDeviceNumber(Long deviceNumber)
    {
        return deviceManageMapper.selectDeviceManageByDeviceNumber(deviceNumber);
    }

    /**
     * 查询设备管理列表
     * 
     * @param deviceManage 设备管理
     * @return 设备管理
     */
    @Override
    public List<DeviceManage> selectDeviceManageList(DeviceManage deviceManage)
    {
        return deviceManageMapper.selectDeviceManageList(deviceManage);
    }

    /**
     * 新增设备管理
     * 
     * @param deviceManage 设备管理
     * @return 结果
     */
    @Override
    public int insertDeviceManage(DeviceManage deviceManage)
    {
        return deviceManageMapper.insertDeviceManage(deviceManage);
    }

    /**
     * 修改设备管理
     * 
     * @param deviceManage 设备管理
     * @return 结果
     */
    @Override
    public int updateDeviceManage(DeviceManage deviceManage)
    {
        return deviceManageMapper.updateDeviceManage(deviceManage);
    }

    /**
     * 批量删除设备管理
     * 
     * @param deviceNumbers 需要删除的设备管理主键
     * @return 结果
     */
    @Override
    public int deleteDeviceManageByDeviceNumbers(Long[] deviceNumbers)
    {
        return deviceManageMapper.deleteDeviceManageByDeviceNumbers(deviceNumbers);
    }

    /**
     * 删除设备管理信息
     * 
     * @param deviceNumber 设备管理主键
     * @return 结果
     */
    @Override
    public int deleteDeviceManageByDeviceNumber(Long deviceNumber)
    {
        return deviceManageMapper.deleteDeviceManageByDeviceNumber(deviceNumber);
    }
}
